package org.example.one.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.one.domain.Theme;
import org.example.one.service.ThemeService;
import org.example.one.mapper.ThemeMapper;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
* @author acer
* @description 针对表【theme】的数据库操作Service实现
* @createDate 2025-06-17 13:13:58
*/
@Service
public class ThemeServiceImpl extends ServiceImpl<ThemeMapper, Theme>
    implements ThemeService{

    @Override
    public void getTheme(Set<Theme> set) {
        set.addAll(baseMapper.getTheme1());
        set.addAll(baseMapper.getTheme2());
        set.addAll(baseMapper.getTheme3());
        set.addAll(baseMapper.getTheme4());
    }

    @Override
    public void addtheme(Theme theme) {
        baseMapper.addTheme(theme);
    }

    @Override
    public void getThemeall(Set<Theme> set) {
        set.addAll(baseMapper.getall());
    }
}




